package com.yinp.proapp.module.erweima.activity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import com.king.zxing.CaptureActivity;
import com.yinp.proapp.base.activity.AppBaseActivity;
import com.yinp.proapp.databinding.ActivityQRCodeBinding;

/**
 * @Author: yinp
 * @Date: 2021/12/3
 * @Description:二维码
 */
public class QRCodeActivity extends AppBaseActivity<ActivityQRCodeBinding> {
    @Override
    protected void initViews() {
//跳转的默认扫码界面
//        startActivityForResult(new Intent(mContext, CaptureActivity.class), 11);
        startActivityForResult(new Intent(mContext, CaptureActivity.class), 11);
    }
//
//    @Override
//    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//        super.onActivityResult(requestCode, resultCode, data);
//        Bundle bundle = data.getExtras();
//        if (bundle != null) {
//            String result = bundle.getString(KEY_RESULT);
//            Log.d(TAG, "onActivityResult: " + result);//http://weixin.qq.com/r/THUbAwzEgFH-rUhg9yBe
//        }
//    }
}